package cn.xluobo.business.wechat.miniapp.course.domain.resp;

import cn.xluobo.business.sc.student.domain.resp.RespCourseClaStudent;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

/**
 * @author ：KingLong
 * @date ：Created in 2020/10/26 14:46
 */
@Data
public class RespClaStudentInfo {

    private Long studentCourseId;

    private Long studentId;

    private String studentName;

    private String sex;

    private String chargeType;

    private BigDecimal totalDay;
    private BigDecimal totalHour;
    private BigDecimal balanceHour;
    // 过期课时
    private BigDecimal expireHour;

    // 即将生效的 总天数
    private BigDecimal comingEffectDay;

    private BigDecimal balanceDays;

    private Boolean effect;


    public static RespClaStudentInfo transfer(RespCourseClaStudent respCourseClaStudent) {
        RespClaStudentInfo respClaStudentInfo = new RespClaStudentInfo();
        BeanUtils.copyProperties(respCourseClaStudent, respClaStudentInfo);
        return respClaStudentInfo;
    }
}
